package com.kxf.androidtestdemo.activity;

import android.os.Bundle;
import android.webkit.WebView;

import com.kxf.androidtestdemo.BuildConfig;
import com.kxf.androidtestdemo.R;

public class AutoPlayWebActivity extends BaseActivity {

    private WebView mCacheWebView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_auto_play_web);

        WebView.setWebContentsDebuggingEnabled(BuildConfig.DEBUG);
        mCacheWebView = findViewById(R.id.mCacheWebView);
        mCacheWebView.getSettings().setMediaPlaybackRequiresUserGesture(false);
        mCacheWebView.loadUrl("http://www.hy-app.com/static/test.html");
    }
}